﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.Goods
{
    /// <summary>
    /// 规格表
    /// </summary>
    [Table("BTB_GoodsSpecificationsItem")]
    public class BTB_GoodsSpecificationsItem
    {

        /// <summary>
        /// 规格明细
        /// </summary>
        [Key, Column(Order = 1)]
        public String GoodsSpecificationsItemID { get; set; }
        
        /// <summary>
        /// 商品ID
        /// </summary>
        public String GoodsID { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public String GoodsSpecifications { get; set; }
        
        /// <summary>
        /// 价格
        /// </summary>
        public Decimal Price { get; set; }
        /// <summary>
        /// 划线价格
        /// </summary>
        public Decimal? MarkingPrice { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        public Int32 Inventory { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 编辑人
        /// </summary>
        public String Editor { get; set; }

        /// <summary>
        /// 编辑时间
        /// </summary>
        public DateTime? EditTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public Boolean? Deleted { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public String CreatorId { get; set; }
        /// <summary>
        /// 是否上架
        /// </summary>
        public Boolean? IsSale { get; set; }
        /// <summary>
        /// 销售数量
        /// </summary>
        public int Sale_Count{ get; set; }
        /// <summary>
        /// 预警库存
        /// </summary>
        public int? stock { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        public String Pic { get; set; }

        /// <summary>
        /// 兑换所需积分
        /// </summary>
        public int PointPrice { get; set; }

        /// <summary>
        /// 缺货量
        /// </summary>
        [NotMapped]
        public int? LackNumber { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        [NotMapped]
        public string Goodsname { get; set; }
        [NotMapped]
        public string[] specifications { get; set; }
    }
}